From daf0787a6215de9d119c0ee2f073f5733a8245d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 23 Jul 2025 21:36:46 +0200 Subject: [PATCH] cargo: do not force liblzma-sys static linking MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Forwarded: not-needed Signed-off-by: Fabian Grünbichler Gbp-Pq: Topic vendor Gbp-Pq: Name cargo-do-not-force-liblzma-sys-static-linking.patch --- src/bootstrap/src/core/build_steps/tool.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs index dcc4898cae..8a5282d586 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs @@ -224,10 +224,6 @@ pub fn prepare_tool_cargo( // avoid rebuilding when running tests. cargo.env("SYSROOT", builder.sysroot(compiler)); - // if tools are using lzma we want to force the build script to build its - // own copy - cargo.env("LZMA_API_STATIC", "1"); - // Note that `miri` always uses jemalloc. As such, there is no checking of the jemalloc build flag. // See also the "JEMALLOC_SYS_WITH_LG_PAGE" setting in the compile build step. if env::var_os("JEMALLOC_SYS_WITH_LG_PAGE").is_none() { -- 2.30.2